<?php
include_once('common/header.php');		
$objNews 	= new News();
$intTotal	= 0;
$arrAdmin	= $objNews->getAll(0,'',0,4,6,0,1);
$arrList 	= array();
foreach($arrMenu as $cate) {
	foreach($cate['sub'] as $sub)
	{		
		$list = $objNews->getAll($sub['categoryid'],'',0,0,0,0,3,$intTotal);
		if($intTotal)
			array_push($arrList, array('name' =>$cate['name'], 'subname' => $sub['name'], 'cateid' => $cate['categoryid'],'subcateid' => $sub['categoryid'], 'data' => $list));
	}
}	
$this->view->arrAdmin = $arrAdmin;
$this->view->arrList = $arrList;
?>
